package com.jiai.cloud.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by Administrator on 2017/6/2.
 */
@FeignClient("authentication")
public interface GoldAPI {
    //邮箱验证码验证
    @RequestMapping(value = "gold/chekcEmail",produces = {"application/json;charset=UTF-8"},method = RequestMethod.POST)
    Object chekcEmail(@RequestParam("email") String email,@RequestParam("code") String code);
    //邮箱发送
    @RequestMapping(value = "gold/sendEmailCode",produces = {"application/json;charset=UTF-8"},method = RequestMethod.GET)
    Object sendEmail(@RequestParam("email") String email);

}
